package com.example.raspberry_pi_demob.DAO;

import com.example.raspberry_pi_demob.entity.AllData;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * AlldataDAO继承基类
 */

@Repository
public interface AllDataDAO extends MyBatisBaseDao<AllData, Integer> {
    //@Select("select * from test")
    List<AllData> selectAll();

    AllData selectByPrimaryKey(Integer timestamp);

    AllData selectByMacAddress(String macAddress);

    List<AllData> selectByTimeBucket(String startTime, String endTime);

    int insert(AllData record);

    int insertSelective(AllData record);

    int deleteByPrimaryKey(Integer timestamp);

    int updateByPrimaryKeySelective(Integer timestamp,AllData record);

    int updateByPrimaryKey(Integer timestamp,AllData record);
    //。xml还没改
}